<?php

class logout extends a_front_controller {

    protected $srv;

    public function __construct() {
        parent::__construct(true);
        $this->srv = new user_service_l_user();
        if (!get_logged_user()) {
            $this->do_redirect("<h2> You are not even logged in!</h2>", 2);
        }
    }

    public function batch_assign() {

    }

    public function index() {
        $this->logut();
    }

    protected function logut() {
        $this->srv->logout();
        $this->do_redirect("<h2 style='font-weight:normal;color:red'>You have successfully logged out of the system</h2>..redirecting in 3 seconds..");
    }

}

?>